package com.springboot.admin.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author sunyaodong
 * @description 通过@FeignClient（“服务名”），来指定调用哪个服务Created by zhoujh on 2018/6/04
 * @email 15091776297@163.com
 * @created 2018/8/27 10:24
 */
@FeignClient(value = "hello-service")
public interface HelloService {

    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    String hello(@RequestParam(value = "name") String name);
}
